package com.camp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.camp.mapper.DetailsMapper;
import com.camp.domain.Details;
import com.camp.service.IDetailsService;

/**
 * 营地详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class DetailsServiceImpl implements IDetailsService 
{
    @Autowired
    private DetailsMapper detailsMapper;

    /**
     * 查询营地详情
     * 
     * @param detailsId 营地详情主键
     * @return 营地详情
     */
    @Override
    public Details selectDetailsByDetailsId(String detailsId)
    {
        return detailsMapper.selectDetailsByDetailsId(detailsId);
    }

    /**
     * 查询营地详情列表
     * 
     * @param details 营地详情
     * @return 营地详情
     */
    @Override
    public List<Details> selectDetailsList(Details details)
    {
        return detailsMapper.selectDetailsList(details);
    }

    /**
     * 新增营地详情
     * 
     * @param details 营地详情
     * @return 结果
     */
    @Override
    public int insertDetails(Details details)
    {
        return detailsMapper.insertDetails(details);
    }

    /**
     * 修改营地详情
     * 
     * @param details 营地详情
     * @return 结果
     */
    @Override
    public int updateDetails(Details details)
    {
        return detailsMapper.updateDetails(details);
    }

    /**
     * 批量删除营地详情
     * 
     * @param detailsIds 需要删除的营地详情主键
     * @return 结果
     */
    @Override
    public int deleteDetailsByDetailsIds(String[] detailsIds)
    {
        return detailsMapper.deleteDetailsByDetailsIds(detailsIds);
    }

    /**
     * 删除营地详情信息
     * 
     * @param detailsId 营地详情主键
     * @return 结果
     */
    @Override
    public int deleteDetailsByDetailsId(String detailsId)
    {
        return detailsMapper.deleteDetailsByDetailsId(detailsId);
    }
}
